package com.hzw.saas.common.config.action;


import com.hzw.saas.common.config.enums.ActionEnums;
import com.hzw.saas.common.config.msg.ChatMsg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.UUID;

@ApiModel(value = "发送消息请求请求的action")
@Data
@ToString
public class SendMsgReqAction extends ChatMsg {

    public SendMsgReqAction(){
        this.setActionType("1");
        this.setAction(ActionEnums.ACTION_SEND_MSG_REQUEST.getAction());
        this.setRequestId(UUID.randomUUID().toString());
    }
    @ApiModelProperty(value = "消息内容格式")
    private String msgType;

    @ApiModelProperty(value = "消息内容")
    private String msgDesc;

    @ApiModelProperty(value = "消息目标群组id")
    private String targetGroupId;

    @ApiModelProperty(value = "消息目标人id")
    private String targetUserId;

    @ApiModelProperty(value = "事件发起者id")
    private String sourceId;

}
